package com.zg.nacos.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/26 18:56
 */
@Data
@ApiModel
public class NodePageReq  extends NacosReq{

    /**
     * 当前页码
     */
    @ApiModelProperty(value = "当前页码", required = true)
    @NotNull(message = "当前页码不能为空")
    private Integer pageNo=1;
    /**
     * 每页的数量
     */
    @ApiModelProperty(value = "每页的数量", required = true)
    @NotNull(message = "每页的数量不能为空")
    private Integer pageSize=30;

    private String keyword;

    @ApiModelProperty(value = "命名空间ID", required = false)
    //@NotEmpty(message = "命名空间ID不能为空")
    private String namespaceId;

}
